\doxysection{bsp\+\_\+gpio.\+h}
\hypertarget{bsp__gpio_8h_source}{}\label{bsp__gpio_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/bsp/gpio/bsp\_gpio.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/bsp/gpio/bsp\_gpio.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{gpio_8h}{gpio.h}}"{}}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#include\ "{}stdint.h"{}}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#define\ GPIO\_MX\_DEVICE\_NUM\ 10}}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00010\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{00011\ \{}
\DoxyCodeLine{00012\ \ \ \ \ GPIO\_EXTI\_MODE\_RISING,}
\DoxyCodeLine{00013\ \ \ \ \ GPIO\_EXTI\_MODE\_FALLING,}
\DoxyCodeLine{00014\ \ \ \ \ GPIO\_EXTI\_MODE\_RISING\_FALLING,}
\DoxyCodeLine{00015\ \ \ \ \ GPIO\_EXTI\_MODE\_NONE,}
\DoxyCodeLine{00016\ \}\ GPIO\_EXTI\_MODE\_e;}
\DoxyCodeLine{00017\ }
\DoxyCodeLine{00022\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structtmpgpio}{tmpgpio}}}
\DoxyCodeLine{00023\ \{}
\DoxyCodeLine{00024\ \ \ \ \ \mbox{\hyperlink{struct_g_p_i_o___type_def}{GPIO\_TypeDef}}\ *GPIOx;\ \ \ \ \ \ \ \ \textcolor{comment}{//\ GPIOA,GPIOB,GPIOC...}}
\DoxyCodeLine{00025\ \ \ \ \ \mbox{\hyperlink{group___g_p_i_o___exported___types_ga5b3ef0486b179415581eb342e0ea6b43}{GPIO\_PinState}}\ pin\_state;\ \ \ \ \textcolor{comment}{//\ 引脚状态,Set,Reset;not\ frequently\ used}}
\DoxyCodeLine{00026\ \ \ \ \ GPIO\_EXTI\_MODE\_e\ exti\_mode;\ \textcolor{comment}{//\ 外部中断模式\ not\ frequently\ used}}
\DoxyCodeLine{00027\ \ \ \ \ uint16\_t\ GPIO\_Pin;\ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ 引脚号,}}
\DoxyCodeLine{00028\ \ \ \ \ \textcolor{comment}{//\ 这些引脚是stm32f4xx\_hal\_gpio.h中定义的宏!!!\ 一定要注意}}
\DoxyCodeLine{00029\ \ \ \ \ \textcolor{comment}{//\ 随便取个名字当临时声明}}
\DoxyCodeLine{00030\ \ \ \ \ void\ (*gpio\_model\_callback)(\textcolor{keyword}{struct\ }\mbox{\hyperlink{structtmpgpio}{tmpgpio}}\ *);\ \textcolor{comment}{//\ exti中断回调函数}}
\DoxyCodeLine{00031\ \ \ \ \ \textcolor{keywordtype}{void}\ *id;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ 区分不同的GPIO实例}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \}\ GPIOInstance;}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00039\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}}
\DoxyCodeLine{00040\ \{}
\DoxyCodeLine{00041\ \ \ \ \ \mbox{\hyperlink{struct_g_p_i_o___type_def}{GPIO\_TypeDef}}\ *GPIOx;\ \ \ \ \ \ \ \ \textcolor{comment}{//\ GPIOA,GPIOB,GPIOC...}}
\DoxyCodeLine{00042\ \ \ \ \ \mbox{\hyperlink{group___g_p_i_o___exported___types_ga5b3ef0486b179415581eb342e0ea6b43}{GPIO\_PinState}}\ pin\_state;\ \ \ \ \textcolor{comment}{//\ 引脚状态,Set,Reset\ not\ frequently\ used}}
\DoxyCodeLine{00043\ \ \ \ \ GPIO\_EXTI\_MODE\_e\ exti\_mode;\ \textcolor{comment}{//\ 外部中断模式\ not\ frequently\ used}}
\DoxyCodeLine{00044\ \ \ \ \ uint16\_t\ GPIO\_Pin;\ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ 引脚号,@note\ 这里的引脚号是GPIO\_PIN\_0,GPIO\_PIN\_1...}}
\DoxyCodeLine{00045\ \ \ \ \ \textcolor{comment}{//\ 这些引脚是stm32f4xx\_hal\_gpio.h中定义的宏!!!\ 一定要注意}}
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00047\ \ \ \ \ void\ (*gpio\_model\_callback)(GPIOInstance\ *);\ \textcolor{comment}{//\ exti中断回调函数}}
\DoxyCodeLine{00048\ \ \ \ \ \textcolor{keywordtype}{void}\ *id;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ 区分不同的GPIO实例}}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00050\ \}\ \mbox{\hyperlink{struct_g_p_i_o___init___config__s}{GPIO\_Init\_Config\_s}};}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00058\ GPIOInstance\ *GPIORegister(\mbox{\hyperlink{struct_g_p_i_o___init___config__s}{GPIO\_Init\_Config\_s}}\ *GPIO\_config);}
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00065\ \textcolor{keywordtype}{void}\ GPIOToggel(GPIOInstance\ *\_instance);}
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00072\ \textcolor{keywordtype}{void}\ GPIOSet(GPIOInstance\ *\_instance);}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00079\ \textcolor{keywordtype}{void}\ GPIOReset(GPIOInstance\ *\_instance);}
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00087\ \mbox{\hyperlink{group___g_p_i_o___exported___types_ga5b3ef0486b179415581eb342e0ea6b43}{GPIO\_PinState}}\ GPIORead(GPIOInstance\ *\_instance);}

\end{DoxyCode}
